home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / After Effects 3.1 SDK Mac / Examples / I⁄O Samples / Filmstrip FXIF / FILM_Options.c < prev    next >
Text File  |  1996-06-04  |  1KB  |  78 lines

  1. /**
  2.     FILM_Options.c
  3.     
  4.     Part of the Adobe After Effects 3.1 SDK    
  5.     Copyright (c)1993-96, Adobe Systems Inc, All Rights Reserved.
  6.  
  7.     Revision History
  8.         1.0, created by dmw
  9. **/
  10.  
  11. #include "PIFormatT.h"
  12. #include "Film.h"
  13.  
  14. void OptionsPrepare (Ptr Stuff, long *data, short *result)
  15. {
  16.     FormatRecordPtr    fp = (FormatRecordPtr)Stuff;
  17.  
  18.     fp->maxData /= 4;
  19.     
  20.     *result = 0;
  21.     
  22. }
  23.  
  24. #if 0
  25. static void AppCallback (FormatRecordPtr Stuff, OSErr *err, short *planes)
  26. {    
  27.     D_PS_AppCallBlock        cb;
  28.     HostProc                hostProc;
  29.     if (Stuff->hostSig == 'FXTC') {
  30.         cb.outspec = Stuff->platformData;
  31.         hostProc = Stuff->hostProc;
  32.         
  33.         if (hostProc) {
  34.             (*hostProc)(0, (long*)&cb);
  35.             *err = cb.err;
  36.             *planes = cb.planes;
  37.         } else {
  38.             *planes = 4;
  39.         }
  40.  
  41.     }
  42. }
  43. #endif
  44.  
  45.  
  46. void OptionsStart (Ptr Stuff, long *data, short *result)
  47. {
  48.     OSErr            err = 0;
  49.     
  50.     if (!err) {
  51.         *result = 0;
  52.     } else {
  53.         *result = err;
  54.     }
  55. }
  56.  
  57.  
  58. void OptionsContinue (Ptr Stuff, long *data, short *result)
  59. {
  60.     OSErr            err = 0;
  61.     FormatRecordPtr    fp = (FormatRecordPtr)Stuff;
  62.  
  63.     if (!err) {
  64.         *result = 0;
  65.     } else {
  66.         *result = err;
  67.     }        
  68. }
  69.  
  70.  
  71. void OptionsFinish (Ptr Stuff, long *data, short *result)
  72. {
  73.     FormatRecordPtr    fp = (FormatRecordPtr)Stuff;
  74. //    DebugStr("\p Done optioning...");
  75.  
  76.     *result = 0;
  77. }
  78.